package com.wlyuan.open.scanner.dao.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author yuanjie
 * @since 2022-10-13
 */
@Data
@TableName("TMS_User")
@ApiModel(value = "UserDO对象", description = "")
public class UserDO implements Serializable {


    private static final long serialVersionUID = -5388615970434594728L;
    private String userAccount;

    private String userPassword;

    private Long userCompanyid;

    @ApiModelProperty("角色编号：1 下单员 2 收单员 4 司机 8 财务 16 调度 32 采购 64 管理人员 128 老板 256 管理员 512 业务员")
    private Long userRoleid;

    private String userName;

    @ApiModelProperty("微信昵称")
    private String userNickname;

    @ApiModelProperty("微信头像")
    private String userPortrait;

    private String userLanguage;

    private Integer userGender;

    private String userBirthday;

    private String userPhone;

    private String userDept;

    private String userDuty;

    private LocalDateTime userInserttime;

    private Integer userInvalid;

    private LocalDateTime userUpdatetime;

    private LocalDateTime userSignintime;

    private String userComments;

    @ApiModelProperty("1 普通用户 2 微信用户")
    private Long userType;

    private Integer userSystem;

    @ApiModelProperty("0表示从未修改密码，1 修改过密码")
    private Integer userFirstchangepwd;

    @ApiModelProperty("勾选关账日提醒的时间")
    private LocalDateTime userClosetime;

    @ApiModelProperty("关联账号ID")
    private Long userAssociateduserid;

    @ApiModelProperty("是否需要域名登录，0否，1是")
    private Integer userIsdomain;

    @TableId(value = "User_ID", type = IdType.AUTO)
    private Long userId;

    private String userOpenid;

    private Integer optStatus;

    @TableField(exist = false)
    private String raw;


}
